/**
* Copyright (c) 2022 - present TinyVue Authors.
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/

@import '../custom.less';
@import './vars.less';

@cascader-menu-prefix-cls: ~'@{css-prefix}cascader-menu';
@cascader-node-prefix-cls: ~'@{css-prefix}cascader-node';

.@{cascader-menu-prefix-cls} {
  .component-css-vars-cascader-menu();

  min-width: var(--ti-cascader-menu-width);
  box-sizing: border-box;
  color: var(--ti-cascader-menu-text-color);
  border-right: solid 1px var(--ti-cascader-menu-border-color);

  &:last-child {
    border-right: none;

    .@{cascader-node-prefix-cls} {
      padding-right: 20px;
    }
  }

  & &__wrap {
    height: 204px;
  }

  & &__list {
    position: relative;
    min-height: 100%;
    margin: var(--ti-cascader-menu-list-margin-vertical) var(--ti-cascader-menu-list-margin-horizontal);
    list-style: none;
    box-sizing: border-box;
    padding: var(--ti-cascader-menu-list-padding-vertical) var(--ti-cascader-menu-list-padding-horizontal);
  }

  &__hover-zone {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }

  &__empty-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--ti-cascader-menu-empty-text-color);
  }
}
